package javabase.desginpattern.structure.decorator;

/**
 * @author fance
 * @date 18-4-26 下午4:33
 */
public class Client {
    public static void main(String[] args) {
        Pancake pancake = new CoarsePancake();
        AbstractCondiment egg = new Egg(pancake);
        AbstractCondiment ham = new Ham(egg);
        ham.sold();
    }
}
